<%--
  Created by IntelliJ IDEA.
  User: JAVA
  Date: 2019/12/11
  Time: 14:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<jsp:include page="../inc.jsp"/>
<html>
<head>
    <title>学生信息的新增或编辑页面</title>
</head>
<body>
    <form id="dataForm">
        <input type="hidden" name="id" value="${stu.id}">
        <div class="container">
            <div class="form-group">
                <label>名称：</label>
                <input type="text" class="form-control" name="name" value="${stu.name}" placeholder="输入名称">
            </div>
            <div class="form-group">
                <label>性别：</label>
                &nbsp;<input type="radio" name="sex" value="1" <c:if test="${stu.sex eq '1'}">checked</c:if>> 男
                &nbsp;<input type="radio" name="sex" value="2" <c:if test="${stu.sex eq '2'}">checked</c:if>> 女
            </div>
            <div class="form-group">
                <label>出生日期：</label>
                <input type="text" class="form-control" name="birthday" placeholder="选择出生日期" value="<fmt:formatDate value="${stu.birthday}" pattern="yyyy-MM-dd"/>">
            </div>
            <div class="form-group">
                <label>学号：</label>
                <input type="text" class="form-control" name="studentNo" placeholder="输入学号" value="${stu.studentNo}">
            </div>
            <div class="form-group">
                <label>身高：</label>
                <input type="text" class="form-control" name="height" placeholder="输入身高" value="${stu.height}">
            </div>
        </div>
    </form>
</body>
</html>
